package com.example.oauthserver.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.security.Principal;

/**
 * <p>
 * 系统用户 前端控制器
 * </p>
 *
 * @author wgq
 */
@Slf4j
@RestController
@RequestMapping("/sysUser")
public class SysUserController {

    @GetMapping("/user/info")
    public Principal user(Principal member) {
        return member;
    }
}
